How does an anonymous function work in onClick in React component

join shbcf.ru